package com.google.googlemarket.utils;

import android.content.Intent;
import android.net.Uri;

import com.google.googlemarket.MyApp;

/**
 * Created by Administrator on 2017/10/19.
 */
public class ApkUtils {

    public static void install(String fileSavePath) {
        Intent intent = new Intent(Intent.ACTION_VIEW);
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        intent.setDataAndType(Uri.parse("file://"+fileSavePath),"application/vnd.android.package-archive");
        MyApp.getmContext().startActivity(intent);
    }
}
